package com.sinosoft.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author: WangShengJie
 * @Date: 2025/4/1
 */
public class JsonObject {
    public static void main(String[] args) {
//        JSONObject jsonObject = new JSONObject();
//        CustomerRequest customerRequest = new CustomerRequest();
//        customerRequest.setName("三十测试");
//        customerRequest.setAge(18);
//        customerRequest.setAgentNo("19920508");
//        customerRequest.setCompannyCocde("3");
//        customerRequest.setMobilePhone("15204275531");
//        customerRequest.setChannel("I");
//        customerRequest.setBranchCode("10");
//        SyncCustomerRequest request = new SyncCustomerRequest();
//        request.setChannel("I");
//        request.setTime("2025-04-02");
//        request.setSource("o");
//        List<CustomerRequest> list = new ArrayList<>();
//        list.add(customerRequest);
//        request.setData(list);
//        String s = JSON.toJSONString(request);
//        System.out.println(s);

        String str = " ";
        String substring = str.substring(0, str.length() - 1);
        System.out.println(substring);

        Map<String, Object> map = new HashMap<>();
        map.put("key", "value");

    }
}
